<?php

Utils_RecordBrowserCommon::new_record_field('SCTV_Material',
    array(
        'name' => _M('Free Ordinal'),
        'type'=>'integer',
        'extra'=>false,
        'visible'=>false,
        'required'=>true
    )
);

$records = Utils_RecordBrowserCommon::get_records('SCTV_Material', array());
foreach ($records as $key => $record) {
	Utils_RecordBrowserCommon::update_record('SCTV_Material', $record['id'], array('free_ordinal'=>$record['ordinal']));
}

Utils_RecordBrowserCommon::delete_record_field('SCTV_Material', 'Ordinal');

Utils_RecordBrowserCommon::new_record_field('SCTV_Material',
    array(
        'name' => _M('Ordinary Ordinal'),
        'type'=>'integer',
        'extra'=>false,
        'visible'=>false,
        'required'=>true
    )
);

Utils_RecordBrowserCommon::new_record_field('SCTV_Material',
    array(
        'name' => _M('Excel Free Ordinal'),
        'type'=>'integer',
        'extra'=>false,
        'visible'=>false,
        'required'=>true
    )
);

Utils_RecordBrowserCommon::new_record_field('SCTV_Material',
    array(
        'name' => _M('Excel Ordinary Ordinal'),
        'type'=>'integer',
        'extra'=>false,
        'visible'=>false,
        'required'=>true
    )
);

Utils_RecordBrowserCommon::new_record_field('SCTV_Material',
    array(
        'name' => _M('Excel Subnet Ordinal'),
        'type'=>'integer',
        'extra'=>false,
        'visible'=>false,
        'required'=>true
    )
);

?>